import { useNavigate } from "react-router-dom"
const Login = ()=>{
    const navigate = useNavigate()
    return (
        <div>
            login
            <button onClick={()=>{navigate('/home')}}>登录</button>
        </div>
    )
}
export default Login